#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"
void test1() {
	ListNode* head = NULL;
	ListInit(&head);
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPrint(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPopBack(head);
	ListPrint(head);
	ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);
	ListPrint(head);
	ListNode* pos = ListFind(head, 3);
	ListInsert(pos, 30);
	ListDelete(pos);
	ListPrint(head);
	ListDestroy(head);

}
int main() {
	test1();
	return 0;
}